package com.fifth.commodity.controller;

import com.fifth.commodity.service.UnitService;
import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.common.pojo.entity.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("commodity/unit")
public class UnitConteroller {
    @Autowired
    private UnitService unitService;

    /**
     * 查询所有单位
     * @return
     */
    @PostMapping("selectAllUnit")
    public CommonResult selectAllUnit(){
        return unitService.selectAllUnit();
    }
}
